package api;

import item.pojo.SpecGroup;
import item.pojo.SpecParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: taft
 * @Date: 2018-11-23 9:58
 */
public interface SpecApi {
    @GetMapping("spec/groups/{cid}")
    List<SpecGroup> querySpecGroups(@PathVariable("cid") Long cid);

    @GetMapping("spec/params")
    List<SpecParam> querySpecParam(
            @RequestParam(value = "gid", required = false) Long gid,
            @RequestParam(value = "cid", required = false) Long cid,
            @RequestParam(value = "searching", required = false) Boolean searching,
            @RequestParam(value = "generic", required = false) Boolean generic);
}
